﻿<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

			<center>
			<div id="infoBox">
				<table>
					<tr>
						<td rowspan="5">
							<img src= "${sight.image_url }" align="left" />
						</td>
					</tr>

					<tr>
						<td colspan="4" id="infoTicketName">${sight.name }</td>
					</tr>
					<tr>
						<td>가격</td>
						<td colspan="3" id="infoPrice">${ticket.price}</td>
					</tr>

					<tr>
						<td>할인가</td>
						<td colspan="3" id="infoDiscountPrice">${currentPrice }</td>
					</tr>
					<tr>
						<td>남은시간</td>

						<td colspan="3" id="infoDay">${ticket.deadline }</td>
					</tr>
					<tr>
						<td colspan="3">
							<div id="infoTicketNumBox">
								<div class="infoNumBox"></div>
							</div>
						</td>
						<td colspan="2" id="infoState">[할인미정]</td>
						<!-- 할인 시 [할인확정]으로 변경 -->
					</tr>			
					<tr>
						<td colspan="2"  class="infoDiscountNumber">${ticket.goal_count }이상 구매시 할인</td>
						<td colspan="3" rowspan="2">
							<a href="buy?sight_id=${sight.id }&ticket_id=${ticket.id }">
								<button class ="button white medium bigrounded" id="buyBtn">
									구매하기
								</button>
							</a>
						</td>
					</tr>					
					<tr>
						<td id="infoCurrent">50</td>
						<td id="infoTicketTotal"> / ${totalTicket }</td>
					</tr>
				</table>
			</div>
			</center>
			<div id="ticketInformation">
				<div id="Information">
					<h3>관광지 설명</h3>
					<p id="info">${sight.description }</p>
				</div>
				<div id="map">
					<div id="map_canvas" style="width: 100%; height: 100%; background: black;">
					</div>
				</div>
			</div>
		</div>